/* General styling for the Gradio Blocks */
.gradio-container {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 20px;
}

/* Styling for the sidebar */
.gradio-container .gr-column .markdown {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.gradio-container .gr-column .gr-button {
    width: 100%;
    margin-bottom: 15px;
}

.gradio-container .gr-column .gr-radio {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* Styling for the chatbot and image input box */
.gradio-container .gr-chatbot {
    height: 400px;
    overflow-y: scroll;
    padding: 10px;
    background-color: #fff8e1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gradio-container .gr-image {
    margin-top: 15px;
    margin-bottom: 10px;
}

.gradio-container .gr-button.large-button {
    width: 100%;
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.gradio-container .gr-button.large-button:hover {
    background-color: #e68900;
}

.gradio-container .gr-chatbot .output-box {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
}

/* Ensure the image and chatbot box take up appropriate space */
#image_input {
    max-width: 100%;
    max-height: 250px;
}

#chatbot_output {
    min-height: 500px;
}

/* Custom scrollbar for the chatbot */
.gr-chatbot::-webkit-scrollbar {
    width: 6px;
}

.gr-chatbot::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 3px;
}

.gr-chatbot::-webkit-scrollbar-track {
    background-color: #f9f9f9;
}

/* 缩略图样式 */
.thumbnail {
    border-radius: 8px;
    cursor: pointer;
    transform: scale(0.3);  /* 缩小非悬停状态下的图片大小 */
    transition: transform 0.3s ease;
}

/* 悬停时缩放至正常大小 */
.image-container:hover .thumbnail {
    transform: scale(1);  /* 恢复正常大小 */
}

.preview {
    display: none;
    position: absolute;
    top: 0;
    left: 210px;
    z-index: 10;
}

.full-size {
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 显示预览图片 */
.image-container:hover .preview {
    display: block;
}

.image-container {
    position: relative;
    display: inline-block;
}

/* Ensure the image and chatbot box take up appropriate space */
#image_input {
    max-width: 100%;
    max-height: 200px;
}

#chatbot_output {
    min-height: 500px;
}

/* Custom scrollbar for the chatbot */
.gr-chatbot::-webkit-scrollbar {
    width: 6px;
}

.gr-chatbot::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 3px;
}

.gr-chatbot::-webkit-scrollbar-track {
    background-color: #f9f9f9;
}

/* 调整 image_input 和 text_input 的宽度 */
.input-box {
    max-width: 300px; /* 设置最大宽度 */
    width: 100%; /* 设置宽度为 100% */
}

#image_input {
    height: 200px; /* 设置 image_input 的高度 */
}

#text_input {
    height: 80px; /* 设置 text_input 的高度 */
}
